import request from '@/config/axios'
/**
 * 创建护理计划
 */
export const create = (data) => {
  return request.post({ url: '/nurse/nurse-plan/create', data })
}

/**
 * 更新护理计划
 */
export const update = (data) => {
  return request.put({ url: '/nurse/nurse-plan/update', data })
}

/**
 * 获取单个护理计划
 */
export const get = (id) => {
  return request.get({ url: '/nurse/nurse-plan/get?id=' + id })
}

/**
 * 分页查询护理计划
 */
export const page = (params) => {
  return request.get({ url: '/nurse/nurse-plan/page', params })
}

/**
 * 删除护理计划
 */
export const deleted = (id) => {
  return request.delete({ url: '/nurse/nurse-plan/deleted?id=' + id })
}
